#include <iostream>

using namespace std;

const int N = 1e5+10;
int n,a[N];

void selection_sort()
{
    for(int i = 0;i < n;i++)
    {
        int pos = i;
        for(int j = i+1;j < n;j++)
        {
            if(a[pos] > a[j])  pos = j;
        }
        swap(a[i],a[pos]);
    }
}

int main()
{
    cin >> n;
    for(int i = 0;i < n;i++) cin >> a[i];

    selection_sort();

    for(int i = 0;i < n;i++) cout << a[i] << " ";
    return 0;
}